﻿using System.ComponentModel.DataAnnotations;

namespace net8.Views
{
    public class ShangPinView
    {
        public Guid Id { get; set; }

        [StringLength(10, MinimumLength = 3, ErrorMessage = "名称必须3到10个字符")]
        public string Name { get; set; }
        public int Price { get; set; }
        public List<UploadFile> DetailList { get; set; }
        public UploadFile Image { get; set; }
    }
}
